package com.w5cschool.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author w5cschool
 * @since 2021-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbBlogComment对象", description="")
public class TbBlogComment implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    @ApiModelProperty(value = "关联的blog主键")
    private Long blogId;

    @ApiModelProperty(value = "评论者名称")
    private String commentator;

    @ApiModelProperty(value = "评论人的邮箱")
    private String email;

    @ApiModelProperty(value = "网址")
    private String websiteUrl;

    @ApiModelProperty(value = "评论内容")
    private String commentBody;

    @ApiModelProperty(value = "评论提交时间")
    private Date commentCreateTime;

    @ApiModelProperty(value = "评论时的ip地址")
    private String commentatorIp;

    @ApiModelProperty(value = "回复内容")
    private String replyBody;

    @ApiModelProperty(value = "回复时间")
    private Date replyCreateTime;

    @ApiModelProperty(value = "是否审核通过 0-未审核 1-审核通过")
    private Integer commentStatus;

    @ApiModelProperty(value = "是否删除 0-未删除 1-已删除")
    private Integer isDeleted;


}
